﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShenLanCMS.Models
{
    /// <summary>
    /// 站点信息
    /// </summary>
    public class Siteinfo
    {
        [Key]
        public Guid SiteinfoID { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        [Display(Name="站点名称")]
        [StringLength(64)]
        [Required(ErrorMessage = "请填写{0}")]
        public string SiteName { get; set; }

        /// <summary>
        /// 站点地址
        /// </summary>
        [Display(Name="站点地址")]
        [Required(ErrorMessage = "请填写{0}")]
        public string SiteUrl { get; set; }

        /// <summary>
        /// 站长邮箱
        /// </summary>
        [Display(Name="站长邮箱")]
        [StringLength(64)]
        public string SiteMail { get; set; }

        /// <summary>
        /// 站点关键词
        /// </summary>
        [Display(Name = "站点关键词")]
        [StringLength(255)]
        [DataType(DataType.MultilineText)]
        public string Keyword { get; set; }

        /// <summary>
        /// 站点描述
        /// </summary>
        [Display(Name = "站点描述")]
        [StringLength(255)]
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }

        /// <summary>
        /// 网站备案号
        /// </summary>
        [Display(Name = "网站备案号")]
        [StringLength(30)]
        public string SiteRecord { get; set; }

        /// <summary>
        /// 登录超时
        /// </summary>
        [Display(Name="登录超时")]
        [Required(ErrorMessage="请填写{0}")]
        public int LogonOverTime { get; set; }

        /// <summary>
        /// 是否开户验证码
        /// </summary>
        [Display(Name="是否开启验证码")]
        public bool IsOpenAuthCode { get; set; }

        public Siteinfo()
        {
        }
    }
}
